package com.xx.service.impl;

import com.xx.entity.Role;
import com.xx.service.RoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Override
    @Transactional
    public List<Role> selectAll() {
        System.out.println("查询");
        return null;
    }

    @Override
    @Transactional
    public Role selectById(int id) {
        System.out.println("根据id查询");
        return null;
    }

    @Override
    @Transactional
    public void save(Role role) {
        System.out.println("保存");
    }

    @Override
    @Transactional
    public void deleteById(int id) {
        System.out.println("删除");
    }
}
